Search found 4 matches
- Fri May 11, 2018 1:34 am
- Forum: Nagios XI
- Topic: NRPE: Custom plugin
- Replies: 7
- Views: 1344
Re: NRPE: Custom plugin
Hello. One more question. Now my script looks like that: #!/bin/bash msgs=`cat /home/wialon/wlocal/storage/ms/msgs_stats.txt | tail -1 | awk '{print $5}'` case $msgs in [1000-99999999999999999999999999999999999999]*) echo "OK - $msgs messages in DB | msgs=$msgs" exit 0 ;; [1-999]*) echo &q...
- Tue May 08, 2018 1:50 pm
- Forum: Nagios XI
- Topic: NRPE: Custom plugin
- Replies: 7
- Views: 1344
Re: NRPE: Custom plugin
I almost make it by own, by adding to output only | $msgs.
Now it's working as I need.
Thanks a lot=)
Now it's working as I need.
Thanks a lot=)
- Tue May 08, 2018 10:17 am
- Forum: Nagios XI
- Topic: NRPE: Custom plugin
- Replies: 7
- Views: 1344
Re: NRPE: Custom plugin
Can u help me with that?
I'm not a programmer and haven't necessary knowledge to implement that
I'm not a programmer and haven't necessary knowledge to implement that
- Tue May 08, 2018 5:45 am
- Forum: Nagios XI
- Topic: NRPE: Custom plugin
- Replies: 7
- Views: 1344
NRPE: Custom plugin
Hello! I had make own custom plugin on Bash that checks *.txt file to control quantity of messages in DB. Here it is: #!/bin/bash msgs=`cat msgs_stats.txt | tail -1 | awk '{print $5}'` case $msgs in [1000-99999999999999999999999999999999999999]*) echo "OK - $msgs messages in DB" exit 0 ;; ...