I have 2.1.0p5.cee and a total beginner.
Trying to get an old SCO Unix server in monitoring.
Very important server unfortunately.
It has no python and there seems to be no agent available.
I tried to send the data from SCO to CMK via a port and put it in files. Every item 1 file.
Then a agent plugin that produces json to put it in cmk.
I failed miserably. Rather demotivating.
What is the way to do it?|
Ik know CMK has also a xinit option.
When someone could push me in the right direction I would be very happy.
I have put the data also in snmp on de cmk server and tried to import the data that way.
No success either.
It should only detect the data from the custom oid range and don’t know if that can be done.
Only way i see is that you try to adapt one of the other UNIX agent scripts for you system.
Hava a look at the AIX or Solaris agents and try to get this to run on your SCO system.
The agent data itself should be fetched then with SSH - if the SSH on this system is not too old
Ik looked at the shell script.
It outputs data to stdout not to the cmk server. Straightforward.
When I would execute the agent script via inetd it just would send the output to stdout on the sco server.
In order to get the data to the cmk server i can redirect the output to the cmk server but will it understand that?
Does the agent controller do some formatting before it send the data to cmk?
Yes you can use it. If this “information” is the agent output from the other machine then you can define a own command instead of the agent call for this host and as the command you use a simple “cat agent_data_from_other_system”.
No it is not the agent output sinds I have no agent on the SCO.
just a files like: system.time with the contents 1731756056.
But i can put in it what I want.
Hallo,
ssh was mentioned before.
Which services are runnig on this systems;
1)
Webservices , check_http and robotmk may help.
2)
Databases with access , sql check may help
I want to monitor the straightforward things like memory, load, cpu, and time.
but also the server runs a great many shell scripts.
When there is a problem in a script I want to send a non zero to cmk and when Okay a zero in combination with the script name.
I can replicate the methode of the agent script and sent the same data format.
Ok,
1)
maybe you can use syslog etc. to send alerts to cmk.
Or what ever sendig infos on port 161
2)
I m writing status files like script_name_ok etc. and checks if sich a file exist and is younger as X hours depending how often the scipt should.
No actual file means something went wrong an.
3)
check the result of the checks in the target application etc, to awoid runing scipts with malfunctions.
Not directly - port 6556 is queried on your system you want to monitor.
If you cannot use one of the UNIX shell script agents on your SCO Unix then you need to create a script the mimics the output of the normal CheckMK agent.
This output then you can transport to the CheckMK system.
Here you have all the options that are possible.
Then on the CheckMK side you can use the “program call instead of agent access” function to read your transferred file.
The syslog option:
Do you mean I use the cmk as a syslog server an use the syslogfile for cmk.
We tried something like that but the options are limited.
Thresholds belong in cmk but with a logfiles they have to be in the SCO server.
The data I need is already on the CMK server.
When the data is on my local doorstep then why should a retrieve it remote?
On the CMK server where the agent controller is available.
Somehow I have to create a host with my custom agent.